testsuite: Add parser test for recent fix
authorBenjamin Otte <otte@redhat.com>
Mon, 7 Jul 2014 12:25:08 +0000 (14:25 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 7 Jul 2014 12:26:06 +0000 (14:26 +0200)
The test doesn't crash without the fix, but it parses the CSS
incorrectly and fails.

testsuite/css/parser/Makefile.am
testsuite/css/parser/animation-shorthand-crash.css [new file with mode: 0644]
testsuite/css/parser/animation-shorthand-crash.ref.css [new file with mode: 0644]

index 5e0577932de97f90015f898ed728730094825206..4b5fc93a39ec05a56acd25cb24505d496ad41e5b 100644 (file)
@@ -30,6 +30,8 @@ clean-local:
        rm $(builddir)/*.out.css || true
 
 test_data = \
+       animation-shorthand-crash.css \
+       animation-shorthand-crash.ref.css \
        at-invalid-01.css \
        at-invalid-01.errors \
        at-invalid-01.ref.css \
diff --git a/testsuite/css/parser/animation-shorthand-crash.css b/testsuite/css/parser/animation-shorthand-crash.css
new file mode 100644 (file)
index 0000000..9f913a6
--- /dev/null
@@ -0,0 +1,3 @@
+a {
+  animation: foo forwards, bar backwards;
+}
diff --git a/testsuite/css/parser/animation-shorthand-crash.ref.css b/testsuite/css/parser/animation-shorthand-crash.ref.css
new file mode 100644 (file)
index 0000000..c46ab61
--- /dev/null
@@ -0,0 +1,9 @@
+a {
+  animation-delay: 0, 0;
+  animation-direction: normal, normal;
+  animation-duration: 0, 0;
+  animation-fill-mode: forwards, backwards;
+  animation-iteration-count: 1, 1;
+  animation-name: foo, bar;
+  animation-timing-function: ease, ease;
+}